package com.library.repository;

import com.library.model.Reader;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ReaderRepository extends JpaRepository<Reader, Long> {
    List<Reader> findByNameContainingIgnoreCase(String name);
    Reader findByEmail(String email);
    Reader findByPhone(String phone);
}
